#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:目标公司二度关联方及其以下投资圈热度
code:InvestOutMaxHqd
tableName:
columnName:
groups:关联方
dependencies:EG_BBD
type:常用指标
dataSourceType:在线指标
description:
eof'''

import sys

reload(sys)
sys.setdefaultencoding('utf-8')


def float_check(num):
    try:
        float(num)
        return True
    except:
        return False


def InvestOutMax():
    try:
        InvestOutMax = EG_BBD["InvestOutMax"]
        if float_check(InvestOutMax):
            return InvestOutMax
        elif InvestOutMax == '':
            return 0
        else:
            return u'缺失值'
    except:
        return u'缺失值'




result = InvestOutMax()

